package com.penglecode.dp.structural.proxy;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
 * 代理实现类-静态代理
 * 
 * @author pengpeng
 * @date 2013-6-18下午3:08:52
 * @version 1.0
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
public class ProxyUserService implements UserService {

	private static final Log logger = LogFactory.getLog(ProxyUserService.class);
	
	private UserService target;
	
	public ProxyUserService(UserService target) {
		super();
		this.target = target;
	}

	public boolean registerUser(User user) {
		logger.debug(">>> param[" + User.class + "] : " + user);
		boolean result = target.registerUser(user);
		logger.debug(">>> result[boolean] : " + result);
		return result;
	}

}
